home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
ansi
/
smile25.zip
/
ANSI.TXT
next >
Wrap
Text File
|
1992-06-12
|
4KB
|
133 lines
S M I L E S U P P O R T E D A N S I C O D E S
"Esc" is used to denote a true ASCII Escape character throughout this
document. Normally text editors will display the Escape character as
^[ or a small arrow pointing left. Most text editors allow typing
an Escape character by one of the following methods:
Hold the ALT key and type 27 on the keypad
Hold the CTRL key and press [
Precede the Escape key with a CTRL-KEY combination
For example, you may enter an ESC character in QEDIT by first pressing
CTRL-P then ESC. See your editor documentation for more information
on entering Escape sequences.
Escape sequence parameters are case sensitive.
SCREEN ATTRIBUTES ----------------------------------------------------
Syntax: Esc [#;#;...m
Where # parameters are one of the following numbers
(ATTRIBUTES)
0 All attributes off (white on black)
1 Bold on (High intensity)
4 Underscore on (monochrome display only) NOT SUPPORTED
5 Blink on
7 Reverse video on NOT SUPPORTED
8 Concealed on NOT SUPPORTED
(FOREGROUND) (with BOLD)
30 Black Dark Gray
31 Red Light Red
32 Green Light Green
33 Brown Yellow
34 Blue Light Blue
35 Magenta Light Magenta
36 Cyan Light Cyan
37 Gray White
(BACKGROUND)
40 Black
41 Red
42 Green
43 Brown
44 Blue
45 Magenta
46 Cyan
47 Gray
EXAMPLES: Esc [1;33;44m Set colors (1)BOLD (33)YELLOW on (44)BLUE
Esc [0m All attributes off, color to Black on white
CURSOR CONTROL SEQUENCES ---------------------------------------------
Cursor Position: Esc [r;cH or Esc [r;cf
r = Row/line #
c = Column #
EXAMPLE: Esc [1,1H or Esc [H Moves cursor to Row 1 Column 1
DEFAULT: 1
Cursor Up : Esc [#A
# = Number of rows/lines to move cursor
EXAMPLE: Esc [5A Move cursor UP 5 lines in the same column
DEFAULT: 1
Cursor Down : Esc [#B
# = Number of rows/lines to move cursor
EXAMPLE: Esc [5B Move cursor DOWN 5 lines in the same column
DEFAULT: 1
Cursor Right : Esc [#C
# = Number of columns to move cursor
EXAMPLE: Esc [5C Move cursor RIGHT 5 columns on the same line
DEFAULT: 1
Cursor Left : Esc [#D
# = Number of columns to move cursor
EXAMPLE: Esc [5A Move cursor LEFT 5 columns on the same line
DEFAULT: 1
Save Cursor : Esc [s
Saves cursor Row and Column infomation
Restore Cursor : Esc [u
Restores cursor position to value saved in
Save Cursor sequence.
SCREEN ERASE SEQUENCES -----------------------------------------------
Erase Display : Esc [2J
Erase the screen and moves cursor to top left (HOME)
Erase Line : Esc [K
Erase from cursor to the end of the line
SET MODE and KEYBOARD REASSIGNMENT sequences are ignored by SMILE
programs so are not listed here. See your DOS manual for more details.
NOTES:
When uploading ANSI screens to bulletin boards make certain the file
ends with the sequence ESC[0m so that colors are reset. Otherwise
you could leave the screen BLINKING or set to undesirable color
combinations.
Several combinations of line length and number of lines are supported
by various BBS software. For best results, check with the SYSOP of
the board you will be uploading to. Otherwise, for most consistant
results, save your ANSI screens at 70-72 characters per line.